package com.xiamo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class EarthquakeEvent {

    @TableField("event_id")
    private String eventID;

    @TableField("report_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reportTime;

    @TableField("report_num")
    private int reportNum;

    @TableField("origin_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date originTime;

    @TableField("hypo_center")
    private String hypoCenter;

    @TableField("latitude")
    private double latitude;

    @TableField("longitude")
    private double longitude;

    @TableField("magnitude")
    private double magnitude;

    @TableField("is_final")
    private boolean isFinal;

}

